package demo523;

public class Users {

        private int id;
        private String username;
        private String password;

        // 默认构造方法
        public Users() {}

        // 带参构造方法
        public Users(int id, String username, String password) {
            this.id = id;
            this.username = username;
            this.password = password;
        }

        // Getter 和 Setter 方法
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }
    }


